package com.ruoyi.notice.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;

import com.entity.concat.ITimeEntity;
import com.ruoyi.common.core.domain.Entity;

/**
 * 消息通知对象 mg_notice
 * 
 * @author ruoyi
 * @date 2024-01-22
 */
public class MgNotice extends Entity implements ITimeEntity<Long>
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Integer id;
    
    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 通知类型 0 群发 1 个人 */
    @Excel(name = "通知类型 0 群发 1 个人")
    private Integer noticeType;

    /** 通知内容 */
    @Excel(name = "通知内容")
    private String noticeContent;

    /** 状态 */
    @Excel(name = "状态")
    private Integer enabled;
    
    private int[] users;
    

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getId() 
    {
        return id;
    }
    public void setNoticeType(Integer noticeType) 
    {
        this.noticeType = noticeType;
    }

    public Integer getNoticeType() 
    {
        return noticeType;
    }
    public void setNoticeContent(String noticeContent) 
    {
        this.noticeContent = noticeContent;
    }

    public String getNoticeContent() 
    {
        return noticeContent;
    }
    public void setEnabled(Integer enabled) 
    {
        this.enabled = enabled;
    }

    public Integer getEnabled() 
    {
        return enabled;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("noticeType", getNoticeType())
            .append("noticeContent", getNoticeContent())
            .append("enabled", getEnabled())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }

	public int[] getUsers() {
		return users;
	}

	public void setUsers(int[] users) {
		this.users = users;
	}
}
